import { EventEmitter } from "events"

export const emitter = new EventEmitter()

export const addEmitterListener = (event, callback) => {
    emitter.addListener(event, callback)
}

export const removeEmitterListener = (event, callback) => {
    emitter.removeListener(event, callback)
}

export const broadcastEmitter = (event, args) => {
    emitter.emit(event, args)
}